<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 左右两边结构一致   右边需是一个存在的东西
        let wangfei = {
            name: '王菲',
            sings: ['匆匆那年', '红豆', '相思', '因为爱情'],
            history: ['窦唯', '李亚鹏', '谢霆锋']
        }

        let {
            name,
            // sings, 
            sings: [a, b, c, d],
            // ...history
            history
        } = wangfei;
        console.log(name); //'王菲'
        console.log(a); //'匆匆那年'
        console.log(a, b, c, d); //'匆匆那年', '红豆', '相思', '因为爱情'
        console.log(history); // Array(3)
    </script>

</body>

</html>